/**
 * 
 */
package com.google.code.jkippt.resource;


import com.google.code.jkippt.annotation.Experimental;
import com.google.gson.annotations.SerializedName;

/**
 * @author Federico De Faveri defaveri@gmail.com
 */
public class Account extends Resource {
	
	protected String username;
	
	@SerializedName("api_token")
	protected String apiToken;
	
	@SerializedName("avatar_url")
	protected String avatarUrl;
	
	protected Account(){}
	
	/**
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}
	
	/**
	 * @return the apiToken
	 */
	public String getApiToken() {
		return apiToken;
	}

	/**
	 * @return the avatarUrl
	 * @experimental Experimental API: This API is still under development and is subject to change.
	 */
	@Experimental
	public String getAvatarUrl() {
		return avatarUrl;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Account [id=");
		builder.append(id);
		builder.append(", resourceUri=");
		builder.append(resourceUri);
		builder.append(", appUrl=");
		builder.append(appUrl);
		builder.append(", username=");
		builder.append(username);
		builder.append(", apiToken=");
		builder.append(apiToken);
		builder.append(", avatarUrl=");
		builder.append(avatarUrl);
		builder.append("]");
		return builder.toString();
	}
}
